/* 覆盖浏览器的默认样式 */
* {
  margin: 0;
  padding: 0;
}
a {
  text-decoration: none;
  color: inherit;
}
li {
  list-style: none;
}

/* 常用工具类 */
.flex {
  display: flex;
}

.align-items-center {
  align-items: center;
}
.justify-content-between {
  justify-content: space-between;
}
.justify-content-center {
  justify-content: center;
}

/* header 开始 */
header {
  background: #333;
  color: #b0b0b0;
  height: 40px;
  font-size: 12px;
  line-height: 40px;
}
.wrapper {
  width: 1226px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
}
header li::after {
  content: "|";
  margin: 0 7px;
  color: #424242;
}
header li:last-child::after,
.no-gap::after {
  display: none;
}
header .cart {
  width: 120px;
  height: 40px;
  background: #424242;
  text-align: center;
  margin-left: 10px;
}
/* header 结束 */

/* nav 开始 */
nav {
  height: 100px;
  color: #333;
}
nav .logo {
  width: 56px;
}
nav ul {
  width: 620px;
}
nav a {
  transition: color 0.2s;
}
nav a:hover {
  color: #ff6700;
}
nav .search-box {
  width: 296px;
  height: 50px;
  position: relative;
}
nav .search-box:hover input,
nav .search-box:hover button {
  border-color: #b0b0b0;
}
nav .search-box input {
  width: 246px;
  height: 48px;
  border: 1px solid #e0e0e0;
  position: absolute;
  left: 0;
  transition: all 0.2s;
  text-indent: 20px;
  color: #616161;
}
nav .search-box input:focus,
nav .search-box input:focus + button {
  outline: none;
  border-color: #ff6700;
}
nav .search-box button {
  width: 50px;
  height: 50px;
  border: 1px solid #e0e0e0;
  position: absolute;
  right: 0;
  background: #fff;
  color: #616161;
  transition: all 0.2s;
}
nav .search-box button:hover {
  color: #fff;
  background: #ff6700;
  border: 1px solid #ff6700;
}
nav .search-box i {
  font-size: 24px;
  font-weight: 600;
}

/* nav 结束 */
/* banner开始 */
#banner{
  background: url(../imgs/bg1.webp);
  height: 460px;
  background-size: contain;
}
#banner aside{
  background: rgba(105,101,101,.6);
  padding: 20px 0;

}
#banner .link{
  color: #fff;
  font-size: 14px;
  padding-left: 30px;
  height: 42px;
  line-height: 42px;
  cursor: pointer;
  width: 204px;
}
#banner .link:hover{
  background: #ff6700;
}
#banner .link::after{
  content: ">";
  float: right;
  margin-right: 20px;
}
/* #banner .link::after {
  font-family: "iconfont" !important;
  content: "\e7ae";
  float: right;
  margin-right: 20px;
}  */
/* banner结束 */

/* hot-products开始 */
#hot-products{
  margin-top: 15px;
}
#hot-products ul{
  width: 234px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #fff;
  background: #5f5750;
}
#hot-products ul i{
  display: block;
  font-size: 24px;
  margin-bottom: 4px;
}

#hot-products img{
  display: block;
  height: 170px;
  margin-left: 15px;
}
#hot-products li{
  flex-grow: 1;
  width:30%;
  /* 如果一个小块块字数小于4，分配内容 */
  text-align: center;
  opacity: 0.7;
  transition: opacity 0.2s;
  position: relative;
}
#hot-products li:hover{
  opacity: 1;
}
#hot-products li::before,
#hot-products li::after{
  content: "";
  display: block;
  background: #665E57;
  position: absolute;
}
#hot-products li::before{
  width: 70px;
  height: 1px;
  top: 3px;
  left: 7px;
}
#hot-products li::after{
  width: 1px;
  height: 70px;
  left: 3px;
  top: 11px;
}



/* hot-products结束 */